

package projetjava;

import Composite.Element;
import javax.swing.tree.*;
import javax.swing.event.*;



public class AdaptateurJTree extends DefaultTreeModel {
    
    private Element racine;
    private MonDefaultMutableTreeNode noeudRacine;
    
    public AdaptateurJTree (){
       
        super(null,false);
        this.racine=null;
        this.noeudRacine=null;
    }
    
    public void setModel(Element racine){
        
        this.racine=racine;
        this.noeudRacine = new MonDefaultMutableTreeNode(racine,this);
        this.setRoot(this.noeudRacine);
        
    }
    
}
